package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 销售对象 sale
 * 
 * @author ruoyi
 * @date 2024-03-11
 */
public class Sale extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 销售ID */
    private Long id;

    /** 销售时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "销售时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    /** 销售数量 */
    @Excel(name = "销售数量")
    private Long number;

    /** 销售单价 */
    @Excel(name = "销售单价")
    private Long price;

    @Excel(name = "药品ID")
    private Long drugId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCreatedTime(Date createdTime) 
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() 
    {
        return createdTime;
    }
    public void setNumber(Long number) 
    {
        this.number = number;
    }

    public Long getNumber() 
    {
        return number;
    }
    public void setPrice(Long price) 
    {
        this.price = price;
    }

    public Long getPrice() 
    {
        return price;
    }
    public void setDrugId(Long drugId)
    {
        this.drugId = drugId;
    }
    public Long getDrugId()
    {
        return drugId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("createdTime", getCreatedTime())
            .append("number", getNumber())
            .append("price", getPrice())
            .append("drugId", getDrugId())
            .toString();
    }
}
